<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-09-29 19:25
 *
 * Version: 2.0
 */

namespace App\Modules\System\Repositories;


use App\Models\PaymentType;
use Flower\Core\Repository\Eloquent\BaseRepository;

class PaymentTypeRepository extends BaseRepository
{
	public function model()
	{
		return PaymentType::class;
	}

	public function getStorePaymentInfo(){
		return $this->model
			->select(['payment_type.id as payment','payment_type.name','picture.image'])
			->leftJoin('picture','picture.id','payment_type.image')
			->get();
	}
}